using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ConvertLocalToWorld : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        print("本地转世界" + this.transform.TransformPoint(Vector3.forward));
        print("本地转世界(转换方向)(不受缩放影响)" + this.transform.TransformDirection(Vector3.forward));
        print("本地转世界(转换方向)(受缩放影响)" + this.transform.TransformVector(Vector3.forward));

    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
